@extends('layouts.default')
@section('content')
@include('modules.thanhmenu')
<?php
if(HomeController::checkInTime('ghikh')){
    
    
$CanBoDGVaDBL = new CanBoDGVaDBL();
$nhomdk = $CanBoDGVaDBL->getNhomSvDK(Session::get('infor.id_nd')[0]);
?>
<table width="750" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td class="tl_main"></td>
        <td class="tc_main" colspan="5"></td>
        <td class="tr_main"></td>        
    </tr>
    <tr>
        <td class="cl_main"></td>
        <td colspan="5">
            <table width="99%" cellspacing="0" cellpadding="0" border="0">
                <tr>
                    <td align="center" colspan="4" class="cm_footer btop brt" style="color:#fff; font-size: 14px; font-weight: bold">
                        Danh Sách Đề Tài Hướng Dẫn
                    </td>
                </tr>
                <tr>
                    <td width="10%" align="center" colspan="1" class="title-danhsachhp blt btop bbot" style="padding: 5px">
                        STT
                    </td>
                    <td width="20%"align="center" colspan="1" class="title-danhsachhp blt btop bbot" style="padding: 5px">
                        Mã Nhóm ĐK
                    </td>
                    <td width="50%"align="center" colspan="1" class="title-danhsachhp blt btop bbot" style="padding: 5px">
                        Tên Đề Tài
                    </td>
                    <td width="10%" align="center" colspan="1" class="title-danhsachhp  blt btop brt bbot" style="padding: 5px">
                        Đánh Giá
                    </td>
                </tr> 
                <?php
                    $stt=0;
                    if(count($nhomdk) != 0)
                    {
                    foreach ($nhomdk as $nhomdks){
                ?>
                <tr <?php if ($stt % 2 != 0) echo "style='background:#ccc'" ?>>
                    <td class="blt btop bbot"align="center" ><?=++$stt?></td>
                    <td class="blt btop bbot"align="center" ><?=$nhomdks->ms_nhom?></td>
                    <td class="blt btop bbot"align="center" ><?=$nhomdks->ten_de_tai?></td>
                    <td class="blt btop brt bbot"align="center" ><img onclick='ctghidanhgia(<?= $nhomdks->id ?>)' title="Ghi Đánh Giá " class="exampleDiv"src="<?=URL?>public/images/icon_edit.png"/></td>
                </tr>
                <?php
                    }}
                ?>
            </table>
        </td>
        <td class="cr_main"></td>
    </tr>
    <tr>
        <td class="bl_main"></td>
        <td class="bc_main" colspan="5"></td>
        <td class="br_main"></td>
</table>
<script type='text/javascript'>
function ctghidanhgia(msn){
        location.href='<?=URL?>cb/5/ghidanhgia/'+msn;
    }
</script>
<?php
}
 else {
   echo "<script>alert('Chưa đến thời gian ghi kế hoạch!');</script>";   
}
?>
@stop

